import java.util.*;
public class HelloWorld {
    public static void main(String[] args) {
        int a=1;
        while(true)
        {
            if(a%15==0)
            {
                System.out.println(a);
            }
            a++;
            if(a>=100)
            {
                break;
            }
        }
    }
    public static void main7(String[] args) {
        int a=1;
        while(a<=100)
        {
            if(a%3==0&&a%5==0)
            {
                System.out.println(a);
            }
            a++;
            continue;
        }
    }
    public static void main6(String[] args) {
        int i=0;
        int n=0;
        int ret=1;
        int sum=0;
        System.out.println("请输入要求的阶乘");
        Scanner sc=new Scanner(System.in);
        n=sc.nextInt();
        for(i=1;i<=n;i++)
        {
            ret*=i;
            sum+=ret;
        }
        System.out.println(ret);
        System.out.println(sum);
    }
    public static void main2(String[] args) {
        int ret = 1;
        int i=0;
        int sum=0;
        for(i=1;i<=5;i++)
        {
            ret*=i;
        }
        System.out.println(ret);
    }
    public static void main1(String[] args) {
        int a=1;
        int sum=0;
        while(a<=100)
        {
            sum+=a;
            a++;
        }
        System.out.println(sum);
        System.out.println("=================");
        a=1;
        int sum1 = 0;
        while(a<=100)
        {
            sum1+=a;
            a+=2;
        }
        System.out.println(sum1);
        System.out.println("=================");
        int sum2=0;
        a=2;
        while(a<=100)
        {
            sum2+=a;
            a+=2;
        }
        System.out.println(sum2);
    }
}
